package cn.iocoder.yudao.module.erp.controller.admin.deppurchaseitem.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - ERP 科室采购申请项分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class DepPurchaseItemPageReqVO extends PageParam {

    @Schema(description = "科室采购订单编号", example = "28919")
    private Long orderId;

    @Schema(description = "供应商编号", example = "22747")
    private Long supplierId;

    @Schema(description = "产品编号", example = "9287")
    private Long productId;

    @Schema(description = "产品单位")
    private Long productUnitId;

    @Schema(description = "产品单位")
    private String productUnitName;

    @Schema(description = "产品规格")
    private String productStandards;

    @Schema(description = "产品单价", example = "32549")
    private BigDecimal productPrice;

    @Schema(description = "数量", example = "26793")
    private BigDecimal count;
    @Schema(description = "数量", example = "26793")
    private BigDecimal num;
    @Schema(description = "数量", example = "26793")
    private BigDecimal nums;
    @Schema(description = "数量", example = "26793")
    private BigDecimal countActual;


    @Schema(description = "总价", example = "15985")
    private BigDecimal totalPrice;

    @Schema(description = "备注", example = "随便")
    private String remark;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "产品名称", example = "张三")
    private String productName;

    private List<Long> ids;
    private String integrateId;

    @Schema(description = "供应商科室编号")
    private Long supplierDeptId;

    @Schema(description = "状态")
    private Long status;

    @Schema(description = "退回原因", example = "张三")
    private String returnReason;
}